﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Sdk.QQMap
{
    public class Location
    {
        /// <summary>
        /// 
        /// </summary>
        public double lng { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double lat { get; set; }
    }

    public class Address_component
    {
        /// <summary>
        /// 北京市
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 北京市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 海淀区
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// 海淀西大街
        /// </summary>
        public string street { get; set; }
        /// <summary>
        /// 74号
        /// </summary>
        public string street_number { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 海淀西大街74号
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Location location { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Address_component address_component { get; set; }
        
    }

    public class GeoCoderResult
    {
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Result result { get; set; }
    }
}
